package com.mayikt.member.service;

import com.alibaba.fastjson.JSONObject;
import com.mayikt.base.BaseResponse;
import com.mayikt.member.input.dto.UserInDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname UserService
 * @Description SpringBoot SpringCloud 构建微服务电商平台。
 * @Created by CHEN JIN LONG
 * @Date 2019/1/19 01:01
 * @Version 1.0
 */
@Api(tags = "会员注册接口")
public interface UserService {

    @ApiOperation(value = "会员用户注册信息接口")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "registCode", dataType = "String", required = true, value = "验证码")
    })
    @PostMapping("/register")
    BaseResponse<JSONObject> register(@RequestBody UserInDTO userInDTO, @RequestParam("registCode") String registCode);



}
